//
//  OverviewViewController.m
//  iMoney
//
//  Created by Sean McGrail on 1/29/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "OverviewViewController.h"
#import "OverviewView.h"
#import "PieChartView.h"

@implementation OverviewViewController


- (id)init
{
	if (self = [super init]) {
		
		self.tabBarItem.image = [UIImage imageNamed:@"bargraph.png"];
		self.title = @"Overview";
				//self.tabBarItem = [[UITabBarItem alloc] 
//								   initWithTabBarSystemItem: 
//								   UITabBarSystemItemBookmarks 
//								   tag:0];	
	}
	return self;
}


// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView {
	
	CGRect mainFrame = CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height-48);
	
    OverviewView *topView = [[OverviewView alloc] initWithFrame:mainFrame];
	self.view = topView;

	[topView release];
}


/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
}
*/

/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
